import request from './request.js'

const user = {
  // 登录
  ClientLogin(data) {
    return request.post('/api/client/core/Login/ClientLogin', data)
  },
  // 微信登录
  wxLogin(data) {
    return request.post('/api/client/core/WxProgram/wxlogin', data)
  },
  // 获取验证码
  SendVerficationCode(data) {
    return request.post('/api/client/core/Login/SendVerficationCode', data)
  },
  // 邀请好友----认证页面获取验证码
  InvitedFriend(data) {
    return request.post('/api/client/core/InvitedFriend/SendVerficationCode', data)
  },
  // 邀请好友-----被邀请的好友注册
  RegisterInvitedFriend(data) {
    return request.post('/api/client/core/InvitedFriend/RegisterInvitedFriend', data)
  },

  //设置密码
  SetMyPassword(data) {
    return request.post('/api/client/core/Login/SetMyPassword', data)
  },
  // imei获取所有相关手机号
  GetAccountsByIMEI(data) {
    return request.post('/api/client/core/Login/GetAccountsByIMEI', data)
  },
  // 验证用户是否存在
  CheckAccountExsist(data) {
    return request.post('/api/client/core/Login/CheckAccountExsist', data)
  },
  // 微信登录token用户信息
  GetUserByWCTokenResponse(data) {
    return request.post('/client/Login/GetUserByWCTokenResponse', data)
  },
  // 微信登录新用户登录接口
  LoginWithWeChatToken(data) {
    return request.post('/client/Login/LoginWithWeChatToken', data)
  },
  // 收支明细
  GetStatementList(data) {
    return request.post('/api/client/core/AccountMoney/GetStatementList', data)
  },
  // 收支详情
  GetStatemnetDetailInfo(data) {
    return request.post('/api/client/core/AccountMoney/GetStatemnetDetailInfo', data)
  },
  // 个人信息
  GetUserInfomation(data) {
    return request.post('/api/client/core/UserInfomation/GetUserInfomation', data)
  },
  // 修改个人信息
  UpdateUserInfomation(data) {
    return request.post('/api/client/core/UserInfomation/UpdateUserInfomation', data)
  },
  // 我的好友列表
  GetMyFriendList(data) {
    return request.post('/api/client/core/UserInfomation/GetMyFriendList', data)
  },
  // 我的_服务商自己的信息
  ServiceOneselfInfomation(data) {
    return request.post('api/client/core/AccountServiceInfo/ServiceOneselfInfomation', data)
  },
  // 我的_修改服务商自己的信息
  UpdateServiceOneselfInfomation(data) {
    return request.post('api/client/core/AccountServiceInfo/UpdateServiceOneselfInfomation', data)
  },
  //我的好友_我的服务商和邀请人
  GetMyShareAndService(data) {
    return request.post('api/client/core/UserInfomation/GetMyShareAndService', data)
  },
  //我的_服务商信息
  ServiceInfomation(data) {
    return request.post('api/client/core/AccountServiceInfo/ServiceInfomation', data)
  },
  // 我的优惠券列表
  GetCouponList(data) {
    return request.post('/api/client/core/Coupon/GetCouponEntityMylist', data)
  },
  // 我的优惠券详情
  GetCouponDetails(data) {
    return request.post('/api/client/core/Coupon/GetCouponDetails', data)
  },
  // 我的浏览记录列表
  GetVisitList(data) {
    return request.post('/api/common/core/Visit/GetVisitCarsList', data)
  },
  // 删除浏览记录
  DeleteInvoiceTitle(data) {
    return request.post('/api/common/core/Visit/DeleteInvoiceTitle', data)
  },
  // 企业成员列表
  GetAccountMemberList(data) {
    return request.post('/api/client/core/AccountApply/GetAccountMemberList', data)
  },
  // 企业成员申请列表
  GetAccountMemberApplyEntityList(data) {
    return request.post('/api/client/core/AccountApply/GetAccountMemberApplyEntityList', data)
  },
  // 获取成员信息
  GetMemberInfomation(data) {
    return request.post('/api/client/core/UserInfomation/GetMemberInfomation', data)
  },
  // 企业成员申请通过
  AgreeAccountApply(data) {
    return request.post('/api/client/core/AccountApply/AgreeAccountApply', data)
  },
  // 企业成员申请拒绝
  RefuseAccountApply(data) {
    return request.post('/api/client/core/AccountApply/RefuseAccountApply', data)
  },
  // 企业成员短信邀请
  SendInviteMember(data) {
    return request.post('/api/client/core/AccountApply/SendInviteMember', data)
  },
  // 移除企业成员
  DeleteMember(data) {
    return request.post('/api/client/core/AccountApply/DeleteMember', data)
  },
  InviteMemberSendMsg(data) {
    return request.post('/api/client/core/UserInfomation/InviteMemberSendMsg', data)
  },
  // 判断是否设置支付密码
  IsExistPayPwd(data) {
	  return request.post('/api/client/core/AccountBank/IsExistPayPwd', data)
  },
  //设置支付密码
  SetPayPassword(data) {
	  return request.post('/api/client/core/AccountBank/SetPayPassword', data)
  },
  //获取图片上传配置
  getImageConfig() {
	  return request.post('/bussiness/Common/UploadAuthImgUpyunConfig')
  },

  //获取文件上传配置
  getFileConfig(data) {
	  return request.post('/bussiness/Common/UploadReceiptFileUpyunConfig', data)
  },
  //获取我的自助洗车会员卡
  GetMyCardList(data) {
    return request.post('/api/client/core/Coupon/GetMyCardList', data)
  },
  //获取我的可用自助洗车优惠券（非套餐卡）
  GetMyUsableSelfServiceCarWashCouponDetails(data) {
    return request.post('/api/client/core/Coupon/GetMyUsableSelfServiceCarWashCouponDetails', data)
  },
  //根据自助洗车优惠券得到实付金额
  GetActuallyAmountBySelfServiceCarWashCouponDetails(data) {
    return request.post('/api/client/core/Coupon/GetActuallyAmountBySelfServiceCarWashCouponDetails', data)
  },
  // 自助洗车会员卡详情
  GetMySelfWashCardDetail(data) {
    return request.post('/api/client/core/Coupon/GetMySelfWashCardDetail', data)
  },
  // 通过店铺id随机获取一个店铺成员
  GetRandAccountByStoreId(data) {
    return request.post('/api/client/core/Login/GetRandAccountByStoreId', data)
  },
}

export default user
